/**
 * ...
 * @author Krzysztof Rozalski
 */

package hapi.flash.util;
import hapi.util.Build;

class FlashVars {
	
	public static var defaultParams:Dynamic;

	public static function get<T>():T {
		var p:T = cast flash.Lib.current.loaderInfo.parameters;
		if ( Reflect.fields(p).length <= 0 ) p = defaultParams;
		return p;
	}
	
}